package nsq

import (
	sqlc "bp/db/sqlc"
)

func (s *NsqEntityServiceImp) MapNsqPubEntityToPtr(list []sqlc.NsqPub) []*sqlc.NsqPub {
	ptrs := make([]*sqlc.NsqPub, len(list))
	for i := range list {
		ptrs[i] = &list[i]
	}
	return ptrs
}

func (s *NsqEntityServiceImp) MapNsqSubEntityToPtr(list []sqlc.NsqSub) []*sqlc.NsqSub {
	ptrs := make([]*sqlc.NsqSub, len(list))
	for i := range list {
		ptrs[i] = &list[i]
	}
	return ptrs
}